


namespace Core.Extensions
{
    using System;
    using System.Collections.Generic;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Resources;

    /// <summary>
    /// Improved armor repair Extension class
    /// </summary>
    
    public sealed class ImprovedArmorRepair: ExtensionBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Extensions.ImprovedArmorRepair"/> class.
        /// </summary>
        public ImprovedArmorRepair()
            : base(
                Traduction.extensions_improved_armor_repair, 
                ExtensionGroupsEnum.Engineering,
                6,
                0, 
                new ExtensionCost(180000,0),
                new ICondition<IExtension>[] {new ExtensionCondition<AcceleratedArmorRepair>(5)} )
        {
            
            
            //Each level of this extension raises the repaired amount (HP) of [[Help:Defense_systems|armor repairers and remote armor repairers]] by an additional 2%.

            Modifiers = new IModifier[] { 
                        new Modifier(FeatureTypesEnum.Module, FeaturesEnum.ArmorRepairAmount, 0.02),
                        new Modifier(FeatureTypesEnum.Module, FeaturesEnum.RemoteArmorRepairAmount, 0.02) };
        }

        /// <summary>
        /// Obtains the extension description
        /// </summary>
        public override string Description
        {
            get { return Traduction.extensions_improved_armor_repair_description; }
        }
    }
}